﻿using JSZS.Data;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using Newtonsoft.Json;
using System.Web.UI.WebControls;
using System.Text;
using System.Threading.Tasks;
namespace JSZS.API
{

    public class QJY_CommentB : BaseEFDao<QJY_Comment> { }
    public class QJY_DXB : BaseEFDao<QJY_DX> { }
    public class QJY_HDB : BaseEFDao<QJY_HD> { }
    public class QJY_UserB : BaseEFDao<QJY_User>
    {


        public QJY_User GetUserInfo(string strSZHLCode)
        {
            QJY_User user = new QJY_UserB().GetEntity(d => d.pccode == strSZHLCode);
            return user;

        }

    }
    public class QJY_KCJHB : BaseEFDao<QJY_KCJH> { }
    public class QJY_KeChenB : BaseEFDao<QJY_KeChen> { }
    public class QJY_KCDataB : BaseEFDao<QJY_KCData> { }
    public class QJY_LOGB : BaseEFDao<QJY_LOG>
    {

        public void InsertLog(string Action, string LogContent, string ReMark, string strUser)
        {
            Task<string> TaskCover = Task.Factory.StartNew<string>(() =>
            {
                this.Insert(new QJY_LOG()
                {
                    LogType = Action,
                    LogContent = LogContent,
                    Remark = ReMark,
                    CRUser = strUser,
                    CRDate = DateTime.Now
                });
                return "";
            });
        }

    }
    public class QJY_MSGB : BaseEFDao<QJY_MSG> { }



    public class QJY_PinJiaB : BaseEFDao<QJY_PinJia> { }
    public class QJY_QianDaoB : BaseEFDao<QJY_QianDao> { }

    public class QJY_QYHD_OptionB : BaseEFDao<QJY_QYHD_Option> { }
    public class QJY_QYHD_ResultB : BaseEFDao<QJY_QYHD_Result> { }

    public class QJY_XSB : BaseEFDao<QJY_Class> { }
    public class QYJ_UserClassB : BaseEFDao<QYJ_UserClass> { }
}